﻿@using CodeCamp.Models.EventMgmt
@model SiteUsersViewModel
@{
    Layout = "~/Views/Shared/_LayoutWideSimple.cshtml";
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Site Users");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Site Users";
        ViewBag.EventName = "Code Camp";
    }
}

@section headaddon {
    <link href="@Url.Content("~/Content/PagedList.css")" rel="stylesheet" type="text/css" />

    <style>
table
{
    border-collapse: collapse;
    border: solid 1px;
    margin: 0;
}
td.ui-nowrap
{
    white-space: nowrap;
}
td.datetime-nowrap
{
    white-space:nowrap;
}
tr.grid-alt-row
{
}
th
{
    padding: 4px;
}
td 
{
    padding: 4px;
}
#content
{
    width: 950px;
    overflow:scroll;
}
    </style>
}
@* #logPager1 div > div > ul {
	list-style: none;
}
*@
<h2>Site Users (with presenters for @Model.EventDisplayName)</h2>

@if (Model.SearchResultsViewModel != null)
{
    @Html.Partial("SiteUsersListPartial", Model.SearchResultsViewModel)
}
